﻿<?xml version="1.0" encoding="utf-8" ?>
<sqlMap namespace='Public' xmlns='http://ibatis.apache.org/mapping' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  <alias>
    <typeAlias alias='PageCriteria' assembly='Janus.BaseEntitys.dll' type='Janus.BaseEntitys.PageCriteria' />
  </alias>
  <resultMaps>    
  </resultMaps>
  <parameterMaps>
    <parameterMap id="PageMap" class="PageCriteria">
      <parameter property="TableName" />
      <parameter property="PrimaryKey"/>
      <parameter property="Fields" />
      <parameter property="Condition" />
      <parameter property="CurrentPage" />
      <parameter property="PageSize" />
      <parameter property="Sort" />
      <parameter property="RecordCount" direction="Output" column="RecordCount"/>
    </parameterMap>
  </parameterMaps>
  <statements>    
    <procedure id="ProcGetPageData" parameterMap="PageMap" resultClass="Hashtable" >
      [dbo].[UP_ProcGetPageData]
    </procedure>
    <update id="UpdateIsEnable" parameterClass="hashtable">
      UPDATE [$table$] SET [IsEnable]=[IsEnable]^1 FROM [$table$] WHERE 1=1 $condition$
    </update>
  </statements>

</sqlMap>
